/**
*File name: imageprocessing.h
*\Author: Tran Van Hoang
*\Date: 07-05-2015
*\Version: $ Reversion:1.0 $
*/
#ifndef IMAGEPROCESSING_H
#define IMAGEPROCESSING_H
#include "cellNetwork.h"

extern float computeDistance(CellPosition pos_1, CellPosition pos_2);

extern bool isExistCoordinate(int x, int y, CellArray *cells, int node_number);

extern int computeErosion(CellArray cell, CellArray *cells, int node_number);

extern void erodingCellNetwork(CellArray *original_cells, CellArray *eroded_cells, int node_number, int &eroded_node_number);

extern void gettingBoundary(CellArray *original_cells, CellArray *boundary_cells, int node_number, int &bondary_node_number);

extern int computeDilation(CellArray cell, CellArray *cells, int node_number);

extern void dilatingCellNetwork(CellArray *original_cells, CellArray *dilated_cells, int node_number, int &dilated_node_number);


#endif
